<template>
	<view>
		<u-sticky bgColor="#fff">
			<u-tabs :list="list" @change="tabsChange"></u-tabs>
		</u-sticky>
		<!-- <MakeDoctor></MakeDoctor> -->
		<MakeCourt v-if='index===0'></MakeCourt>
		<MakeDoctor v-if='index===1'></MakeDoctor>
	</view>
</template>
<script>
	import MakeDoctor from './MakeDoctor/index.vue'
	import MakeCourt from './MakeCourt/index.vue'
	export default {
		data() {
			return {
				list: [{
						name: '分院评论'
					},
					{
						name: '医生评论'
					},
				],
				index: 0
			}
		},
		methods: {
			tabsChange(e) {
				this.index = e.index
			}
		},
		components: {
			MakeDoctor,
			MakeCourt
		}
	}
</script>
<style>

</style>